package chapter_7;

import java.io.FileReader;
import java.util.Scanner;

public class Test18 {
    public static void main(String[] args) throws Exception{
        Scanner scanner = new Scanner(new FileReader("D:\\str.txt"));
//        System.out;
//        System.err;
        while(scanner.hasNextLine()){
            System.out.println(scanner.nextLine());
        }
        scanner.close();
    }
}
